<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/5/9 0009
  Time: 22:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--使用了<shiro:hasPermission>标签来判断用户是否有某个权限，从而决定是否展示特定的链接--%>
<shiro:hasPermission name="user:query"><a href="/user/list">查询用户</a><br></shiro:hasPermission>
<shiro:hasPermission name="user:delete"> <a href="/user/delete">删除用户</a><br></shiro:hasPermission>
<shiro:hasPermission name="user:update"><a href="/user/update">修改用户</a><br></shiro:hasPermission>
<shiro:hasPermission name="user:insert"><a href="/user/add">添加用户</a><br></shiro:hasPermission>
<shiro:hasPermission name="user:export"><a href="/user/export">导出用户</a><br></shiro:hasPermission>
</body>
</html>
